﻿using System;

namespace Communication.Lib.Core
{
    public interface ICommunicatable<T> where T : BaseInfo
    {
        event Action<T> RecvHandler;

        bool IsAlive { get; }

        bool SendData(T info);

        bool SendData(byte[] bytes);

        void Start();

        void Stop();
    }
}